//
//  CCError.h
//  Activity
//
//  Created by coco on 15/5/8.
//  Copyright (c) 2015年 coco. All rights reserved.
//

#import <Foundation/Foundation.h>
#define ERROR(x)   [CCError errorWithCode:x \
des:NSLocalizedStringFromTable(([NSString stringWithFormat:@"%d",x]), @"Error", nil)]
@interface CCError : NSObject
@property (nonatomic, assign) int code;
@property (nonatomic, copy) NSString *des;
- (id) initWithCode:(int)code des:(NSString *)des;
+ (id) errorWithCode:(int)code des:(NSString *)des;
@end
